Method and system for routing

ABSTRACT

Disclosed is a method, system, and computer program product for routing, modeling routes, and measuring congestion. In some embodiments, Gcells are implemented with reduced number of nodes to facilitate route modeling and congestion measurement. Some embodiments are particularly suitable for direct congestion and routing analysis of diagonal routing paths. In this way, congestion analysis can be directly performed along diagonal boundaries for diagonal routes, without requiring association with Gcell boundaries on Manhattan routing layers.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a division of U.S. non-provisional patent application Ser. No. 11/751,526, filed May 21, 2007, which claims the benefit of U.S. provisional application Ser. No. 60/877,942, filed on Dec. 29, 2006, and which is a continuation-in-part of U.S. patent application with Ser. No. 10/335,180, filed on Dec. 31, 2002, which claims priority to U.S. provisional application with Ser. No. 60/427,131, filed on Nov. 18, 2002. This application is also cross-related to U.S. non-provisional patent application Ser. No. 12/326,100, which was filed on Dec. 1, 2008 and is a divisional application of the aforementioned U.S. non-provisional patent application Ser. No. 10/336,180. This application is further cross related to U.S. non-provisional patent application with attorney docket number 02PA122US13D01 and application Ser. No. ______ filed concurrently with this application. The contents of all the above non-provisional and provisional applications are hereby incorporated by reference in its entirety as if fully set forth herein.

BACKGROUND OF THE INVENTION

An integrated circuit (“IC”) is a device (e.g., a semiconductor device) that includes many electronic components, such as transistors, resistors, diodes, etc. These components are often interconnected to form multiple circuit components, such as gates, cells, memory units, arithmetic units, controllers, decoders, etc. An IC includes multiple layers of wiring that interconnect its electronic and circuit components. Traditionally, IC's use preferred direction (“PD”) wiring models, which specify a preferred wiring direction for each of their wiring layers. In preferred direction wiring models, the preferred direction typically alternates between successive wiring layers. One example of a PD wiring model is the PD Manhattan wiring model, which specifies alternating layers of preferred-direction horizontal and vertical wiring.

Design engineers design IC's by transforming logical or circuit descriptions of the IC's into geometric descriptions, called layouts. IC layouts typically include (I) circuit modules (i.e., geometric representations of electronic or circuit IC components) with pins, and (2) interconnect lines (i.e., geometric representations of wiring) that connect the pins of the circuit modules. A net is typically defined as a collection of pins that need to be connected. A list of all or some of the nets in a layout is referred to as a net list.

To create layouts, design engineers typically use electronic design automation (“EDA”) applications. These applications provide sets of computer-based tools for creating, editing, and analyzing IC design layouts. One EDA tool is a router that defines routes for interconnect lines that connect the pins of nets. Routing is generally divided into two phases: global routing and detailed routing. For each net, global routing generates a “loose” route for the interconnect lines that are to connect the pins of the net. The “looseness” of a global route depends on the particular global router used. After global routes have been created, the detailed routing creates specific individual routes for each net.

While some commercial global routers today might allow an occasional diagonal jog, these routers do not typically explore diagonal routing directions consistently when they are specifying the routing geometries of the interconnect lines. This lack of diagonal exploration increases the total wirelength (i.e., total length of interconnect lines) needed to connect the nets in the layout. Therefore, there is a need for a routing method and apparatus that considers diagonal routing directions. There is also a need for a new way of identifying and costing routes.

SUMMARY OF THE INVENTION

Some embodiments of the invention are methods and systems for implementing techniques for routing, modeling routes, and measuring congestion. In some embodiments, Gcells are implemented with reduced number of nodes to facilitate route modeling and congestion measurement. Some embodiments are particularly suitable for direct congestion and routing analysis of diagonal routing paths.

BRIEF DESCRIPTION OF FIGURES

FIG. 1 illustrates a 4×4 section of a congestion grid.

FIG. 2 illustrates a section of a length grid that divides each Gcell created by the congestion grid into four nodes.

FIG. 3 illustrates the four nodes in each Gcell on a particular layer.

FIGS. 4-7 illustrate the directions of edges on interconnect layers 2-5 in some embodiments of the invention.

FIG. 8 illustrates edges that cross the Gcells created by the congestion grid.

FIG. 9 illustrates a Gcell having a single node.

FIGS. 10-11 illustrate Gcells having single nodes for Manhattan wiring layers.

FIGS. 12A-C illustrate cells for a 45 degree wiring layer.

FIGS. 13A-B illustrate cells for a 135 degree wiring layer.

FIG. 14 illustrates transitions between layers using the present model.

FIGS. 15-16 illustrate corner nodes for Manhattan wiring layers.

FIGS. 17A-F illustrate different Gcell shapes, sizes, dimensions, and/or orientations for different layers.

FIGS. 18A-D illustrate Gcells for a routing model having corner nodes.

FIGS. 19A-B illustrate alternate Gcell implementations.

FIG. 20A-C and 21A-C show cells having two nodes.

FIGS. 22A-B illustrate an approach for analyzing congestion on a Manhattan wiring layer.

FIGS. 23A-B illustrate an approach for analyzing congestion on a diagonal wiring layer.

FIGS. 24A-B illustrate an approach for analyzing congestion on a diagonal wiring layer using corner nodes.

FIG. 25 shows a flowchart of a process for routing, modeling, and congestion analysis according to some embodiments of the invention.

FIG. 26 shows an architecture of an example computing system with which the invention may be implemented.

DETAILED DESCRIPTION

In the following description, numerous details are set forth for purpose of explanation. However, one of ordinary skill in the art will realize that the invention may be practiced without the use of these specific details. In other instances, well-known structures and devices are shown in block diagram form in order not to obscure the description of the invention with unnecessary detail.

Some embodiments of the invention are methods and systems for implementing techniques for routing, modeling routes, and measuring congestion. In some embodiments, Gcells are implemented with fewer nodes to facilitate route modeling and congestion measurement.

Several embodiments of the invention provide a router that routes a set of nets in a region of an integrated circuit (“IC”) layout. Each routed net includes a set of routable elements in the IC-layout region. The routable elements are pins in the embodiments described below, although they might be other elements in other embodiments.

Embodiment Using Four Nodes Per GCell

In the embodiments described in this section, the router uses a five-layer wiring model that has horizontal wiring on wiring layer 1, vertical wiring on wiring layer 2, horizontal wiring on wiring layer 3, +45 degree diagonal wiring on wiring layer 4, and −45 degree (also sometimes referred to as 135 degree) diagonal wiring on wiring layer 5. One of ordinary skill will realize that the router can use other wiring models in other embodiments. In some embodiments, a line is “diagonal” if it forms an angle other than 0 degree or 90 degree with respect to the layout's Cartesian coordinate axes, which are typically parallel with the layout's boundary and/or the boundary of the layout's expected IC. On the other hand, an interconnect line is “horizontal” or “vertical” if it forms an angle of 0 degree or 90 degree with respect to one of the coordinate axes of the layout. In certain circumstances, special transition moves must be employed with respect to the diagonal wiring layers. For example, a “zig” is a special move gadget used to model transitions between the disjoint quadrant sets of diagonal 135 and diagonal 45 degree layers, e.g., as described in co-pending U.S. application Ser. No. 10/335,180 and U.S. Pat. Nos. 7,171,635 and 7,047,513, all of which are hereby incorporated by reference in their entirety. As described in more detail in other sections below, some embodiments of the invention provide advantageous modeling approaches for routing that eliminate the requirement to use the zig transition.

In the embodiments described in this section, the router partitions an IC-layout region into several square sub-regions. For each net being routed, the router then identifies a global route that connects the set of sub-regions that contain at least one pin of the net. Each net's global route is a set of edges (i.e., interconnect lines) that connects the set of sub-regions that contain the net's pins. The identified routes might have horizontal, vertical, and +/−45 degree diagonal edges in the embodiments described below.

In these embodiments, the edges that are used to define each route are part of a routing graph used by the router. In some embodiments, the router uses two grids to create a routing graph. The first grid is a coarser grid that divides the IC layout into a number of sub-regions, called Gcells. The second grid is a finer grid that divides each Gcell into four sub-regions. In the embodiments described below, the Gcells are square. This shape well supports +/−45 degree routing, as any set of +/−45 degree wiring tracks that cut through a square Gcell will fill its horizontal and vertical boundaries consistently. One of ordinary skill will realize that other embodiments might use different shaped Gcells.

On each wiring layer, each of the four sub-regions in each Gcell is represented by a node at the center of the sub-region. The embodiments described below use the coarser grid to measure route congestion in the layout region, and use the finer grid to measure route lengths. Accordingly, below, the coarser grid is referred to as the congestion grid, while the finer grid is referred to as the length grid.

FIGS. 1 and 2 illustrate small sections of the congestion and length grids. As shown in these figures, intersecting horizontal and vertical lines form both these grids. FIG. 1 illustrates a 4×4 section of the congestion grid 100. This section divides a portion of an IC region into 16 Gcells 105. In the embodiments described below, the congestion grid divides the IC region into many more Gcells (e.g., tens or hundreds of thousands).

FIG. 2 illustrates a section of the length grid 200 that corresponds to the section of the congestion grid 100 illustrated in FIG. 1. As shown in this figure, the length grid divides each Gcell 105 into four nodes 205 on each wiring layer. FIG. 3 illustrates the four nodes in each Gcell on a particular layer. There are a number of planar and non-planar edges between the nodes defined by the length grid 200. These edges are referred to as “node edges” in the discussion below.

A planar node edge connects two adjacent routing-graph nodes. Each such edge represents a set of wiring tracks along the edge's particular direction that connect the two sub-regions represented by the edge's two nodes. Planar node edges have different directions on different wiring layers. FIGS. 4 through 7 illustrate the directions of these edges on layers 2-5 in some embodiments. Some embodiments assume that there are no planar node edges between routing-graph nodes on layer 1, as this layer is often quite congested. Some of these embodiments promote all the pins on layer 1 to layer 2. Other embodiments, however, specify planar node edges on layer 1. In some of these embodiments, the planar node edges on layer 1 are in the same direction as node edges on layer 3.

FIG. 4 illustrates that on layer 2 a vertical node edge 405 exists between each pair of vertically adjacent nodes, while FIG. 5 illustrates that on layer 3 a horizontal node edge 505 exists between each pair of horizontally adjacent nodes. FIGS. 6 and 7 illustrate that on layers 4 and 5, +/−45 degree diagonal node edges exist only between certain pairs of diagonally adjacent nodes. Specifically, FIG. 6 illustrates that 45 degree diagonal node edges exist between northwest nodes 605 and southeast nodes 610 of different Gcells. As shown in this figure, no 45 degree diagonal node edges are incident on northeast nodes 615 and southwest nodes 620. FIG. 7 illustrates that −45 degree diagonal node edges exist between northeast node 615 and southwest nodes 620 of different Gcells. As shown in this figure, no −45 degree diagonal node edges are incident on northwest nodes 605 and southeast nodes 610.

In the embodiments described below, each Manhattan node edge on layer 2 or 3 has a unit length cost (L). In these embodiments, each diagonal node edge on layer 4 or 5 has a length cost that equals the unit length cost times the square root of two (L*{square root} {square root over (2)}). Also, the use of a node edge across a Gcell boundary reduces the capacity of the boundary, and is thereby assessed a wire congestion cost.

The router examines wire congestion at Gcell boundaries on each layer available for routing. Specifically, on each available-routing layer, the router computes capacities at Gcell boundaries for wiring along the particular layer's direction. On a particular layer, the wiring resources (i.e., wiring tracks) across a Gcell boundary can be conceptually represented as a planar “congestion edge” across that boundary on the particular layer in the layer's wiring direction.

FIG. 8 presents a two-dimensional diagram that illustrates the congestion edges on layers 2-5 for the routing directions illustrated in FIGS. 4-7. FIG. 8 illustrates one horizontal congestion edge across each vertical boundary between horizontally adjacent Gcells, one vertical congestion edge across each horizontal boundary between vertically adjacent Gcells, and one each 45 degree and −45 degree diagonal congestion edges across each boundary between each pair of adjacent Gcells. In this example, each vertical congestion edge is on layer 2, each horizontal congestion edge is on layer 3, each 45 degree congestion edge is on layer 4, and each −45 degree congestion edge is on layer 5.

The router keeps track of one congestion-grid capacity on each layer at each boundary between adjacent Gcells. Accordingly, each congestion edge is associated with all node edges that cross the same Gcell boundary on the same layer as the congestion edge. As illustrated in FIGS. 4-7, certain planar node edges cross the Gcell boundaries. In the embodiments described below, certain non-planar edges between layers 4 and 5 cross Gcell boundaries.

In some embodiments that use the wiring model illustrated in FIGS. 4-7, the association between the congestion edges and the node edges is as follows. Each horizontal congestion edge on layer 3 is associated with the pair of horizontal node edges that cross the same Gcell boundary as the horizontal congestion edge on the layer 3. Each vertical congestion edge on layer 2 is associated with the pair of vertical node edges that cross the same Gcell boundary as the vertical congestion edge on layer 2.

Each 45 degree diagonal congestion edge on layer 4 is associated with a 45 degree diagonal node edge that crosses the same Gcell boundary as the 45 degree diagonal congestion edge on layer 4, and can be associated with two non-planar node edges between layers 4 and 5 that cross the same Gcell boundary as the 45 degree congestion edge. Each −45 degree diagonal congestion edge on layer 5 is associated with a −45 degree diagonal node edge that crosses the same Gcell boundary as the −45 degree diagonal congestion edge on layer 5, and can be associated with two non-planar node edges between layers 4 and 5 that cross the same Gcell boundary as the −45 degree congestion edge.

Node edges start and terminate on nodes. Congestion edges, on the other hand, do not have explicit start and end points in some embodiments. This is because unlike node edges that are used to define routes, congestion edges function only to evaluate usage versus capacity. The router's use of node and congestion edges is further described below.

In the embodiments described below, the router can define routes that use non-planar node edges. In these embodiments, non-planar node edges exist (1) between each pair of nodes that are overlapping and that are in two adjacent routing layers (e.g., are in layers 2 and 3), (2) between certain pairs of non-overlapping nodes that are within the same Gcell and that are on adjacent diagonal layers 4 and 5, and (3) between certain pairs of non-overlapping nodes that are within adjacent Gcells and that are on adjacent diagonal layers 4 and 5. Each non-planar node edge represents a via between the two layers traversed by the edge. A non-planar edge that is between non-overlapping nodes in layers 4 and 5 also represents wiring to and from the edge's via. Each of the non-planar edge types will now be described further

The routing graph includes a non-planar node edge between each pair of overlapping nodes that are on two adjacent routing layers. Each such non-planar edge represents a via between the edge's two nodes. Each such edge is assessed a wirelength cost and a via congestion cost. The wirelength cost equals a via-scalar factor (X) times the unit length cost (L) (i.e., is assessed a wirelength cost X*L). The via-scalar factor is 1 in some embodiments, while it is greater or less than one in other embodiments. The use of any non-planar edge also incurs a via congestion cost that represents the potential difficulty in placing too many vias between the two layers traversed by the non-planar edge in the Gcell associated with the non-planar edge's via. For a non-planar edge between two overlapping nodes, the Gcell associated with the edge's vias is the Gcell containing the two nodes.

Improved Routing Representation, Modeling, and Congestion Analysis

Some embodiments of the invention provide an improved approach for representing routing search space and doing congestion analysis. These embodiments provide several improvements, including (a) speeding up the search for routing paths; (b) eliminating moves that do not charge for congestion, which may sometimes produce paths that miss real blockages; (c) eliminating zigs.

To accomplish these improvements according to some embodiments, Gcell tiles are implemented such that only certain limited places within the tiles are permitted to be used as nodes. This limitation upon node locations serves to eliminate excess steps between routing points, while still maintaining any needed crossing points between tiles.

FIG. 9 shows an example of a Gcell grid 902 according to some embodiments, in which the routing model is represented as having one node 904 at the center of each Gcell 906. The idea is that the single node 904 provides a more direct connection from one Gcell to another Gcell, both within the same layer and across different layers of the design. A certain amount of distance resolution may be sacrificed, but this approach should also provide increased efficiencies and performance under many circumstances. In this approach, all connection points within the gcell 906, e.g., pins and terminals, are represented by the single node 904. This is true in some embodiments even if the pin is actually closer to another node, such as a corner node as described in more detail below. In an alternate embodiment, pins and terminals are represented by the nearest node, whether a center node or a corner node.

FIG. 10 illustrates an example Gcell grid 1002 for a horizontal Manhattan routing layer. This model includes one node 1004 at the center of each Gcell 1006. The routing paths 1008 are routed in a horizontal Manhattan direction from each node to its adjacent node.

FIG. 11 illustrates an example Gcell grid 1102 for a vertical Manhattan routing layer. This model includes one node 1104 at the center of each Gcell 1106. The routing paths 1108 are routed in a vertical Manhattan direction from each node to its adjacent node.

FIG. 12A illustrates an example Gcell grid 1202 for a 45 degree diagonal routing layer. This model includes one node 1204 at the center of each standard Gcell 1206. The 45 degree diagonal routing paths 1208 are routed each node to its diagonal adjacent node across the intersection point between Gcells.

In some embodiments for the diagonal layers, instead of associating the center node 1204 with the entire Gcell, the node 1204 is identified with only a portion of one or more Gcells. This can be shown in FIG. 12B, in which a node 1204 is associated with inscribed diamond 1210 within Gcell 1206. The inscribed diamond is the shape that can be used for congestion analysis of diagonal layers, as described in more detail below. In the embodiment of FIG. 12B, the inscribed diamond 1210 covers half the area of a standard Gcell 1206.

In some embodiments, routing from one diagonal center node to its directly adjacent vertical or horizontal center node may need to utilize movement onto another layer. This is an example of a “chessboard” problem in which models that can only transition diagonally from one center node to another center node may not allow routing between adjacent center nodes, similar to the movement of bishops on a chessboard in which a bishop on a whites space can never move to an adjacent black space because the bishop only moves diagonally. For example, routing from a first center node on the 135 degree routing layer to a second center node in an adjacent Gcell could be accomplished by using a via to move from the first center node on the 135 degree routing layer to a first vertical center node on the vertical Manhattan routing layer. Thereafter, a vertical routing path is created to a second vertical center node on the vertical Manhattan routing layer, and then another via is used to move to the second center node on the 135 degree routing layer.

As shown in FIG. 12C, each diagonal move from the center node 1204 of a Gcell can be modeled to go through a corner node 1216, which is the intersection between four standard Gcells 1206 (or the intersection of fewer Gcells at the edge of the Gcell grid). The corner node 1216 provides enhanced distance resolution for diagonal routing directions. In addition, using corner nodes will avoid the problem described above of requiring transitions to Manhattan routing layers to route between adjacent center nodes, since the route between adjacent center nodes can be made by diagonally routing through a connecting corner node. The corner node 1216 can also be associated with a diamond shape 1230 of the same size as the inscribed diamond 1210 shown in FIG. 12 B. This diamond shape 1230 fills out the space left by the “centered” diamonds. Continuing one more step in the same direction brings the route representation to the standard center node 1204 of the next Gcell. Therefore, in the approach shown in FIG. 12C, it takes two diagonal moves to travel from one Gcell to any that it touches at a corner.

A similar approach can be taken to represent route modeling for the 135 degree diagonal direction layer. FIG. 13A illustrates an example Gcell grid 1302 for a 135 degree diagonal routing layer. This model includes one node 1304 at the center of each standard Gcell 1306. The 135 degree diagonal routing paths 1308 are routed from each node to its diagonal adjacent node across the intersection point between Gcells. Similar to the description of the 45 degree diagonal layer, the node 1304 can be identified with a different portion of one or more Gcells, such as the inscribed diamond 1310 in Gcell 1306. In the embodiment of FIG. 13A, the inscribed diamond 1310 covers half the area of a standard Gcell 1306.

As shown in FIG. 13B, each diagonal move from the center node 1304 of a Gcell can be modeled to go through a corner node 1316, which is the intersection between standard Gcells 1306. The corner node 1316 provides enhanced distance resolution for diagonal routing directions. The corner node 1316 can also be associated with a diamond shape 1320 of the same size as the inscribed diamond 1310 shown in FIG. 13A. This diamond shape 1320 fills out the space left by the “centered” diamonds. Continuing one more step in the same direction brings the route representation to the standard center node 1304 of the next Gcell. Therefore, in the approach shown in FIG. 13B, it takes two diagonal moves to travel from one Gcell to any that it touches at a corner.

In this model, direct connections are available from the center node of each Gcell to two Manhattan neighbors in its layer's preferred direction. To illustrate, consider the configuration represented by FIG. 14. The transition from the diagonal route 1402 on the 135 degree diagonal routing layer to a vertical route 1404 on a vertical Manhattan routing layer happens at node 1406. Similarly, the transition from the diagonal route 1402 on the 135 degree diagonal routing layer can be made to a horizontal route 1408 on a Manhattan routing layer at node 1410. It is noted that these transitions can be made while avoiding zig movements.

Transitions between two diagonal layers can be made at any of the nodes, including corner nodes. To illustrate, shown in FIG. 14 is a diagonal route 1420 on the 135 degree diagonal routing layer. Diagonal route 1420 on the 135 degree diagonal routing layer transitions to diagonal route 1424 on the 45 degree diagonal routing layer through a center node 1422. In turn, diagonal route 1424 on the 45 degree diagonal routing layer transitions to diagonal route 1428 on the 135 degree diagonal routing layer through a corner node 1426. Corner nodes thus support transitions between diagonal 45 degree and diagonal 135 degree routing.

In some embodiments, via moves are available between aligned center nodes of any two adjacent layers. In some embodiment, the only vias allowed at the corner nodes are between diagonal layers.

FIGS. 15 and 16 illustrate alternate embodiments in which corner nodes may also be employed on the Manhattan wiring layers. FIG. 15 shows a horizontal Manhattan layer in which both center nodes 1502 and corner nodes 1504 are usable for horizontal wiring routes. FIG. 16 shows a vertical Manhattan layer in which both center nodes 1602 and corner nodes 1604 are usable for vertical wiring routes. In these approaches, vias are allowed at the corner nodes for all layers, thereby allowing transitions in direction at any of the center or corner nodes.

Some embodiments of the invention are directed to approaches in which Gcells on different layers correspond to different shapes, dimensions, orientations, and/or sizes.

To illustrate, consider the Gcell grid 1710 shown in FIG. 17A. An array of square Gcells 1720 are shown in grid 1710. Assume that the square Gcells 1720 are used to facilitate Manhattan routing. Therefore, any vertical or horizontal Manhattan routing would be modeled with the square Gcells 1720 as described above.

However, the 135 degree routing layer corresponds to Gcells having different shapes than the square Gcell 1720. For example, shown in the figure is a Gcell 1756 corresponding to node 1754 that is shaped as an elongated rectangle which has a longer length along the preferred wiring direction. The 135 degree Gcell 1756 is oriented such that the rectangular shape is aligned to match the preferred direction of the routing layer.

FIG. 17B shows an array 1752 of such 135 degree Gcells 1756 that would be modeled across the 135 degree routing layer, assuming that corner nodes are not being used. The Gcells 1756 in the lengthwise direction have boundaries that are equidistant between the nodes. Adjacent Gcells 1756 in the non-lengthwise directions are offset from one another.

FIG. 17C shows a grid pattern of the 135 degree Gcells 1756 overlaid on a grid pattern of the Manhattan Gcells 1720. It can be seen that the 135 degree Gcells 1756 have different shapes and orientations as compared to the Manhattan Gcells 1720. However, both types of Gcells cover the same area. It is noted that in this embodiment, the 135 degree Gcells 1756 have boundaries in the lengthwise direction which correspond to the intersection points of the Manhattan Gcells 1720.

In a similar manner, the 45 degree routing layer corresponds to Gcells having different shapes than the square Gcell 1720. For example, FIG. 17D shows an array of 45 degree Gcells 1766 that are shaped as an elongated rectangle which has a longer length along the preferred wiring direction. The 45 degree Gcell 1766 is oriented such that the rectangular shape is aligned to match the preferred direction of the routing layer. This rectangular shape is used if the layer is not modeled with corner nodes. The Gcells 1766 in the lengthwise direction have boundaries that are equidistant between the nodes. Adjacent Gcells 1766 in the non-lengthwise directions are offset from one another.

FIG. 17E shows a grid pattern of the 45 degree Gcells 1766 overlaid on a grid pattern of the Manhattan Gcells 1720. The 45 degree Gcells 1766 have different shapes and orientations as compared to the Manhattan Gcells 1720. However, both types of Gcells cover the same area.

FIG. 17F illustrates all three types of Gcells overlaid onto a single set of nodes. Shown are Manhattan Gcells 1720, a 135 degree Gcell 1756, and a 45 degree Gcell 1766. It can be seen that shape of the 135 degree Gcell 1756 and the 45 degree Gcell 1766 are identical. The principle distinction between the 135 degree Gcell 1756 and the 45 degree Gcell 1766 is the orientation of the respective Gcells. In particular, the Gcells for the diagonal routing layers are rotated to the same angle as the preferred wiring direction of each layer. Therefore, the 45 degree Gcell 1766 is rotated to a 45 degree angle that is consistent with the preferred wiring direction of the 45 degree routing layer. The 135 degree Gcell 1756 is rotated to a 135 degree angle that is consistent with the preferred wiring direction of the 135 degree routing layer.

The Gcell shapes on the diagonal routing layers may differ if corner nodes are used. FIG. 18A shows a grid of 135 degree Gcells 1856 that have been overlaid onto a grid of Manhattan Gcells 1720. Because corner nodes 1862 are being modeled, the diagonal 135 degree Gcells 1856 shown in FIG. 18A are smaller than the 135 degree Gcells 1756 shown in FIG. 17B. This is because the area and shape encompassed by the Gcell 1856 corresponding to each node are configured to be consistent, including Gcells corresponding to both center nodes 1860 and corner nodes 1862. As a result, more Gcells 1756 are modeled if corner nodes 1862 are used, at least by comparison to an approach in which corner nodes are not used. In essence, the Gcells 1856 have the same size, shape, and orientation as the inscribed diamond shown in FIG. 13A. FIG. 18B shows a grid of 135 degree Gcells 1856 as they would be modeled for a 135 degree routing layer if corner nodes 1862 are used.

Similarly, when corner nodes 1862 exist, FIG. 18C shows a grid of 45 degree Gcells 1877 that have been overlaid onto a grid of Manhattan Gcells 1720. Because corner nodes 1862 are being used, the diagonal 45 degree Gcells 1877 shown in FIG. 18C are smaller than the 45 degree Gcells 1766 shown in FIG. 17D. As a result, more 45 degree Gcells are modeled by comparison if corner nodes 1862 are used. The Gcells 1877 have the same size, shape, and orientation as the inscribed diamond shown in FIG. 12B. FIG. 18D shows a grid of 45 degree Gcells 1877 as they would be modeled for a 45 degree routing layer if corner nodes 1862 are used. It is noted that the 45 degree Gcells 1877 and the 135 degree Gcells 1856 have identical shapes, and areas.

It is noted that the Gcells may have different Gcell boundaries on the different layers.

FIGS. 19A and 19B show an alternate embodiment in which square Gcells 1950 are used to model diagonal routing paths on diagonal routing layers. The square Gcells 1950 are rotated to match the preferred wiring direction of the respective wiring layers. Assume that the diagonal wiring layers have 45 degree and 135 degree preferred wiring directions. Since a square Gcell 1950 that has been rotated 135 degrees will appear the same as one rotated 45 degrees, the grid of square Gcells 1950 shown in FIG. 19A can be equally used to model routing on either the 45 degree wiring layer 1952 or the 135 degree wiring layer 1954.

FIG. 19A illustrates how the horizontal wiring layers can be modeled using rectangular Gcells 1970. Each horizontal Gcell 1970 is shaped as an elongated rectangle which has a longer length along the preferred horizontal wiring direction. The Gcells 1970 in the lengthwise direction correspond to boundaries that are equidistant between the nodes 1972. Adjacent Gcells 1970 in the non-lengthwise directions are offset from one another.

Similarly, FIG. 19B illustrates how the vertical wiring layers could be modeled using rectangular Gcells 1960. Each vertical Gcell 1960 is shaped as an elongated rectangle which has a longer length along the preferred vertical wiring direction. The Gcells 1960 in the lengthwise direction correspond to boundaries that are equidistant between the nodes 1972. Adjacent Gcells 1960 in the non-lengthwise directions are offset from one another.

Essentially, the approach of FIGS. 19A and 19B are rotated versions of the grids illustrated in FIG. 17C, where the rotated square Gcells are used to model diagonal routes and the rectangular Gcells are used to model the Manhattan routes. As such, the shapes of the vertical and horizontal Gcells are identical, with the principle distinction between the vertical degree Gcell and the horizontal Gcell is in the orientation of the respective Gcells.

The invention is not limited to models having only a single node within a Gcell. FIG. 20A shows an embodiment in which a Gcell includes two nodes 1702 and 1704 in a diagonal pattern. FIG. 20B shows the embodiment in which routing paths are defined on the 45 degree diagonal routing layers. FIG. 20C shows the embodiment in which routing paths are defined on the 135 degree diagonal routing layer.

Similarly, FIG. 21A shows an embodiment in which a Gcell includes two nodes 1802 and 1804 in the opposite diagonal pattern. FIG. 21B shows the embodiment in which routing paths are defined on the 135 degree diagonal routing layers. FIG. 21C shows the embodiment in which routing paths are defined on the 45 degree diagonal routing layer.

In this approach, all connection points, e.g., pins and terminals, within the Gcell are consistently represented by one of the two nodes, e.g. the lower left bottom node 1704. This is true in some embodiments even if the pin is actually closer to the node 1702 in the Gcell, or to a closer corner node if corner nodes are being used. In an alternate embodiment, pins and terminals are represented by the nearest node to that pin or terminal.

Congestion Analysis

The general goal of congestion analysis is to identify, determine, and analyze the blockage conditions associated with routing between one point and another point. In some cases, it is very important to know the conditions associated with the boundaries between two Gcells.

The improved model representation of the present invention provides improvements for congestion analysis. In particular, the present model moves beyond any restrictions of prior approaches that require measurement of congestion at Manhattan boundaries. Instead, the process of congestion analysis can be made more naturally and efficiently with respect to diagonal routing paths.

In some embodiments, capacity calculations on diagonal layers are rotated in the angle of the preferred routing direction for that layer. For example, for layers that have a preferred direction of 45 degrees with respect to Manhattan layers, the capacity calculations are performed rotated to 45 degrees. The location of the calculations in this approach is not restricted to measurement at Manhattan boundaries.

Before describing congestion calculations for diagonal layers, it is helpful to first explain how such analysis can be performed on Manhattan routing layers. FIG. 22A shows an example horizontal routing path 1900 between node 1902 in Gcell 1908 and node 1904 in Gcell 1910 on a horizontal Manhattan routing layer.

One approach to congestion analysis is to draw a region of import/interest around the boundaries of the Gcells or areas of interest. FIG. 22B shows a rectangular bounding box 1912 that corresponds to Gcells 1908 and 1910, which would be the region of import/interest for the horizontal routing path 1900 between nodes 1902 and 1904. The region of interest comprises one half of each Gcell 1908 and 1910 corresponding to the nodes 1902 and 1904. The portion of the Gcells 1908 and 1910 that are included within the region of import/interest is the portion containing the route 1900.

An initial action for congestion analysis is to identify the obstacles in the box 1912 that would impact the ability for a route 1900 to cross the boundary from Gcell 1908 to Gcell 1910. Blockages anywhere within the box 1912 are considered for this step of congestion analysis. The idea is that this step would identify the portions of the Gcells within box 1912 which are not eligible for routing purposes.

Capacity would then be determined for the space within box 1912, which corresponds to the availability of locations for routes between Gcell 1908 and 1910. Taking the identified blockages into account, possible tracks within the box 1912 are considered to determine whether any of the possible tracks would be suitable candidates for routing. Different parameters may be considered to determine the suitability of any particular track, e.g., distance, spacing, and size parameters. Capacity would be the measure of how many tracks are available for routing.

One example approach that an be taken to perform congestion analysis is described in U.S. Pat. No. 7,080,342, which is hereby incorporated by reference in its entirety.

According to some embodiments, congestion analysis for diagonal routing paths is performed in a similar way, but applied consistent with the particular Gcell used for the preferred direction of the layer of interest. Shown in FIG. 23A is an example diagonal routing path 2504 between center node 2502 and center node 2508. The diagonal routing path 2504 is on the 135 degree diagonal routing layer.

Similar to the approach for Manhattan layers, the capacity analysis process for diagonal layers is implemented by drawing a region of import/interest around the boundaries of the areas of interest. Referring to FIG. 23B, the areas of interest corresponds to one half of each Gcell 2512 and 2516 that corresponds to the nodes 2502 and 2508. The portion of the Gcells 2516 and 2512 that are included within the region of import/interest is the portion containing the routing path 2504. The resulting area of interest is box 2510, a rectangle aligned with the preferred routing direction of the 135 degree wiring layer.

The next actions for congestion analysis would then proceed very similarly to the actions for congestion analysis on a Manhattan layer. Obstacles in the box 2510 would be identified which would impact the ability of a route to cross the boundary 2520 between the Gcells 2512 and 2516. Blockages anywhere within the box 2510 are considered for this step of congestion analysis. This would identify the portions of the region of interest which are not eligible for routing purposes. Capacity would then be determined for the space within box 2510, which corresponds to the availability of locations for routes. Taking the identified blockages into account, possible tracks within the box 2510 are considered to determine whether any of the possible tracks would be suitable candidates for routing. Different parameters may be considered to determine the suitability of any particular track, e.g., distance, spacing, and size parameters. Capacity would be the measure of how much many tracks are available for routing.

In this way, congestion analysis can be directly performed along diagonal boundaries for diagonal routes, without requiring transitions to Manhattan routes/analysis. Moreover, the location for the diagonal congestion analysis is performed without requiring the measurement to coincide with a Manhattan boundary location. This provides a more natural way of performing such analysis.

FIGS. 24A and 24B illustrate an approach for congestion analysis when corner nodes are used. FIG. 24A shows an example diagonal routing path 2004 between a center node 2002 and a corner node 2006. The diagonal routing path 2004 is on the 135 degree diagonal routing layer.

Similar to the approach previously described, capacity analysis process is implemented by drawing a region of import/interest around the boundaries of the areas of interest. Referring to FIG. 24B, the area of interest corresponds to one half of each Gcell 2012 and 2014 that corresponds to the nodes 2002 and 2006. The portion of the Gcells 2012 and 2014 that are included within the region of import/interest is the portion containing the routing path 2004. The resulting region of interest is a square box 2010, aligned with the preferred routing direction of the 135 degree wiring layer.

It is noted that the region of interest for the approach shown in FIG. 24B is smaller than the region of interest shown in FIG. 23B. This is because the Gcells are smaller when corner nodes are employed. This provides a resolution difference between the analysis of diagonal layers with corner nodes and without corner nodes. In effect, the smaller region of interest for the corner node approach provides increased resolution when performing congestion analysis on diagonal layers.

FIG. 25 shows a flowchart of an approach for performing congestion analysis according to some embodiments of the invention. At 2102, the process begins with a representation of cells having a reduced number of nodes. In one embodiment, this action corresponds to each cell having a single node, preferably in the center of the cell. In alternate embodiments, this action corresponds to cells having two angled nodes. In other embodiments, this action corresponds to any cell having less than three nodes. Corner nodes may be utilized at the intersection point of cells.

At 2104, the process continues by identifying one or more routing paths between nodes. Based upon the routing path, cells of interest are identified at 2106. For example, for Manhattan routing paths, this action would identify the Gcells corresponding to the routing path. In some embodiments, cells on two or more different layers may correspond to different shapes, dimensions, sizes, and/or orientations.

An area of import is identified at 2108 based upon the identified cells of interest. The area of import may be defined to include one half of each cell of interest. The area of import/interest includes the portions of the identified cell which include the identified routing path(s). In alternate embodiments, either smaller or larger portions of the cells may be included within the identified area of import/interest. A bounding box can be drawn around the boundaries of the area of import.

Thereafter, congestion may be analyzed within the bounding boxes. In one approach, congestion is analyzed at the boundaries between cells within the bounding box. Any suitable approach may be used to perform congestion analysis. One suitable approach for congestion analysis is described in U.S. Pat. No. 7,080,342, which is hereby incorporated by reference in its entirety. The resulting routing graph, representation, and congestion analysis can then be used to route the circuit. One suitable approach for implementing routing is described in co-pending U.S. application Ser. No. 10/335,180, filed on Dec. 31, 2002, which is hereby incorporated by reference in its entirety.

System Architecture Overview

FIG. 26 is a block diagram of an illustrative computing system 2300 suitable for implementing various embodiments of the invention. Computer system 2300 includes a bus 2306 or other communication mechanism for communicating information, which interconnects subsystems and devices, such as processor 2307, system memory 2308 (e.g., RAM), static storage device 2309 (e.g., ROM), disk drive 2310 (e.g., magnetic or optical), communication interface 2314 (e.g., modem or Ethernet card), display 2311 (e.g., CRT or LCD), input device 2312 (e.g., keyboard), and cursor control.

According to one embodiment of the invention, computer system 2300 performs specific operations by processor 2307 executing one or more sequences of one or more instructions contained in system memory 2308. Such instructions may be read into system memory 2308 from another computer readable/usable medium, such as static storage device 2309 or disk drive 2310. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware circuitry and/or software. In one embodiment, the term “logic” shall mean any combination of software or hardware that is used to implement all or part of the invention.

The term “computer readable medium” or “computer usable medium” as used herein refers to any medium that participates in providing instructions to processor 2307 for execution. Such a medium may take many forms, including but not limited to, non-volatile media and volatile media. Non-volatile media include, for example, optical or magnetic disks, such as disk drive 2310. Volatile media include dynamic memory, such as system memory 2308.

Common forms of computer readable media include, for example, floppy disk, flexible disk, hard disk, magnetic tape, any other magnetic medium, CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with patterns of holes, RAM, PROM, EPROM, FLASH-EPROM, any other memory chip or cartridge, or any other medium from which a computer can read.

In an embodiment of the invention, execution of the sequences of instructions to practice the invention is performed by a single computer system 2300. According to other embodiments of the invention, two or more computer systems 2300 coupled by communication link 2315 (e.g., LAN, PTSN, or wireless network) may perform the sequence of instructions required to practice the invention in coordination with one another.

Computer system 2300 may transmit and receive messages, data, and instructions, including program, i.e., application code, through communication link 2315 and communication interface 2314. Received program code may be executed by processor 2307 as it is received, and/or stored in disk drive 2310, or other non-volatile storage for later execution.

In an embodiment, the computer system 2300 operates in conjunction with a data storage system 2331, e.g., a data storage system 233 1 that contains a database 2332 that is readily accessible by the computer system 2300. The computer system 2300 communicates with the data storage system 2331 through a data interface 2333. A data interface 2333, which is coupled to the bus 2306, transmits and receives electrical, electromagnetic, or optical signals that include data streams representing various types of signal information, e.g., instructions, messages, and data. In embodiments of the invention, the instructions of the data interface 2333 may be performed by the communication interface 2314.

In the foregoing specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. For example, the above-described process flows are described with reference to a particular ordering of process actions. However, the ordering of many of the described process actions may be changed without affecting the scope or operation of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than restrictive sense. 

1. A computer implemented method for routing, comprising: modeling a first gcell type on a first layer of an IC design; and modeling a second gcell type on a second layer of an IC design, wherein the first gcell type has a different shape, size, or orientation from the second gcell type.
 2. The computer implemented method of claim 1, in which the first layer is a Manhattan routing layer, and the second layer is a diagonal routing layer.
 3. The computer implemented method of claim 2, in which the first gcell type on the first layer comprises a square shape.
 4. The computer implemented method of claim 2, in which the first gcell type on the first layer comprises a rectangular shape having a longer side in a preferred wiring direction.
 5. The computer implemented method of claim 2, in which the second gcell type on the second layer comprises a square shape that is rotated at an angle corresponding to a preferred diagonal wiring direction.
 6. The computer implemented method of claim 2, in which the second gcell type on the second layer comprises a rectangular shape comprising a longer side in a preferred wiring direction.
 7. A system for routing, comprising: a computer system which comprises at least one processor and is configured for performing: modeling a first gcell type on a first layer of an IC design; and modeling a second gcell type on a second layer of an IC design, wherein the first gcell type has a different shape, size, or orientation from the second gcell type.
 8. The system of claim 7, in which the first layer is a Manhattan routing layer, and the second layer is a diagonal routing layer.
 9. The system of claim 7, in which the first gcell type on the first layer comprises a square shape.
 10. The system of claim 7, in which the first gcell type on the first layer comprises a rectangular shape having a longer side in a preferred wiring direction.
 11. The system of claim 7, in which the second gcell type on the second layer comprises a square shape that is rotated at an angle corresponding to a preferred diagonal wiring direction.
 12. The system of claim 7, in which the second gcell type on the second layer comprises a rectangular shape comprising a longer side in a preferred wiring direction.
 13. An article of manufacture of a computer program product comprising a computer readable storage medium having a sequence of instructions which, when executed by at least one processor of a computer system, causes the at least one processor to perform a process for modeling cells for an integrated circuit design router, the process comprising:
 14. The article of manufacture of claim 13, in which the first layer is a Manhattan routing layer, and the second layer is a diagonal routing layer.
 15. The article of manufacture of claim 13, in which the first gcell type on the first layer comprises a square shape.
 16. The article of manufacture of claim 13, in which the first gcell type on the first layer comprises a rectangular shape having a longer side in a preferred wiring direction.
 17. The article of manufacture of claim 13, in which the second gcell type on the second layer comprises a square shape that is rotated at an angle corresponding to a preferred diagonal wiring direction.
 18. The article of manufacture of claim 13, in which the second gcell type on the second layer comprises a rectangular shape comprising a longer side in a preferred wiring direction. 